<div class="vj_box_300">
    <div align="center" class="title_300"><strong>Tỷ giá vàng từ sjc.com.vn</strong></div>
    <table class="tb-exchange" border="1" cellspacing="0" cellpadding="5">
        <tr bgcolor="#f2f2f2">
            <th>Thành Phố</th>
            <th>Mua</th>
            <th>Bán</th>
        </tr>
        <?php
        foreach ($gold_rates as $key => $value) {
            echo '
    <tr>
    	<td>' . $value['name'] . '</td>
        <td>' . $value['buy'] . '</td>
        <td>' . $value['sell'] . '</td>
    </tr>
		';
        }
        ?>
    </table>
</div>
<div class="vj_box_300">
    <div align="center" class="title_300"><strong>Tỷ giá ngoại tệ từ vietcombank.com.vn</strong></div>
    <table class="tb-exchange" border="1" cellspacing="0" cellpadding="5">
        <tr bgcolor="#f2f2f2">
            <th>Mã</th>
            <th>Mua</th>
            <th>Bán</th>
            <th>Chuyển khoản</th>
        </tr>
        <?php
        foreach ($exchange_rates as $key => $value) {
            echo '
    <tr>
    	<td>' . $value['name'] . '</td>
        <td>' . $value['buy'] . '</td>
        <td>' . $value['sell'] . '</td>
        <td>' . $value['transfer'] . '</td>
    </tr>
		';
        }
        ?>
    </table>
</div>